package wjh.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import wjh.mapper.AdminInfoMapper;
import wjh.mapper.DoctorInfoMapper;
import wjh.pojo.Admin;
import wjh.pojo.Doctor;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.io.IOException;
import java.util.UUID;

@Service
public class AdminInfoImpl implements AdminInfoService{
    @Autowired
    private AdminInfoMapper adminInfoMapper;


    @Override
    public Admin findAdminById(int id) {
        return adminInfoMapper.findAdminById(id);
    }

    @Override
    public void updateInfo(Admin admin) {
        adminInfoMapper.updateInfo(admin);
    }

    @Override
    public Admin findUserByName(String username) {
        return adminInfoMapper.findUserByName(username);
    }

    @Override
    public Admin findAdminLogin(String username, String password) {
        return adminInfoMapper.findAdminLogin(username,password);
    }

    @Override
    public Admin findId(String username, String password) {
        return adminInfoMapper.findId(username,password);
    }

    @Override
    public Admin findAdminRegister(String username) {
        return adminInfoMapper.findAdminRegister(username);
    }

    @Override
    public void register(String username, String password) {
        adminInfoMapper.register(username,password);
    }


}
